<%@ include file="header.jsp" %>

</head>
<body>
<div class="content">
    <div class="defaultBlock">
    ${moaning.text}
    </div>
    <div class="defaultBlock">
        <c:choose>
            <c:when test="${! empty bestReply}">
                <b>${bestReply.text}</b>
            </c:when>
            <c:when test="${fn:length(moaning.replies) > 0}">
                Voting is in progress (${fn:length(moaning.replies)} replies 
                and ${fn:length(moaning.votes)} votes so far).
            </c:when>
            <c:otherwise>
                No replies yet.
            </c:otherwise>
        </c:choose>
    </div>
</div>
</body>
</html>
